//编程实现键盘输入一个人的出生年份，计算出他一生能过几个闰年（以100岁为寿命长度）
import java.util.Scanner;
public class Class1 {
public static void main(String[] args){
Scanner in=new Scanner(System.in);
System.out.println("please enter your year of birth:");
int year = in.nextInt();
int n = 0;
for(int i = year;i<year+100;i++){
if(i%4==0&&i%100!=0||i%400==0)
n++;
}
System.out.print(n);
}
}
